package com.css.crm.dao.impl;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.css.crm.dao.RegisterCustUpdLogDao;
import com.css.crm.vo.RegisterCustUpdLogVo;

/**
 * Implementation for RegisterCustUpdLogDao
 * 
 * @author ais
 */
public class RegisterCustUpdLogDaoImpl extends BaseDaoImpl implements RegisterCustUpdLogDao {

	public RegisterCustUpdLogDaoImpl() {
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.css.crm.dao.RegisterCustUpdLogDao#getRegisterCustUpdLogById(com.css
	 * .crm.vo.RegisterCustUpdLogVo)
	 */
	@Override
	public RegisterCustUpdLogVo getRegisterCustUpdLogById(RegisterCustUpdLogVo vo) {

		SqlSession session = getMyBatisSession();
		return session.selectOne("registerCustUpdLog.getRegisterCustUpdLogById", vo);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.css.crm.dao.RegisterCustUpdLogDao#deleteRegisterCustUpdLogById(com
	 * .css.crm.vo.RegisterCustUpdLogVo)
	 */
	@Override
	public int deleteRegisterCustUpdLogById(RegisterCustUpdLogVo vo) {

		SqlSession session = getMyBatisSession();
		return session.delete("registerCustUpdLog.deleteRegisterCustUpdLogById", vo);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.css.crm.dao.RegisterCustUpdLogDao#insertRegisterCustUpdLog(com.css
	 * .crm.vo.RegisterCustUpdLogVo)
	 */
	@Override
	public int insertRegisterCustUpdLog(RegisterCustUpdLogVo vo) {

		SqlSession session = getMyBatisSession();
		return session.insert("registerCustUpdLog.insertRegisterCustUpdLog", vo);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.css.crm.dao.RegisterCustUpdLogDao#updateRegisterCustUpdLog(com.css
	 * .crm.vo.RegisterCustUpdLogVo)
	 */
	@Override
	public int updateRegisterCustUpdLog(RegisterCustUpdLogVo vo) {

		SqlSession session = getMyBatisSession();
		return session.update("registerCustUpdLog.updateRegisterCustUpdLog", vo);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.css.crm.dao.RegisterCustUpdLogDao#queryRegisterCustUpdLog(com.css
	 * .crm.vo.RegisterCustUpdLogVo)
	 */
	@Override
	public List<RegisterCustUpdLogVo> queryRegisterCustUpdLog(RegisterCustUpdLogVo vo) {

		SqlSession session = getMyBatisSession();
		return session.selectList("registerCustUpdLog.queryRegisterCustUpdLog", vo);
	}

}
